package com.lyf.learn.atsgg.spring.ioc.annotation;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.util.Arrays;

/**
 * @AUTHOR LYF
 * @DATE 2022/5/26
 * @VERSION 1.0
 * @DESC
 */
public class IocMain {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(SpringConfig.class);
        System.out.println(Arrays.toString(context.getBeanDefinitionNames()));
        //[org.springframework.context.annotation.internalConfigurationAnnotationProcessor,
        // org.springframework.context.annotation.internalAutowiredAnnotationProcessor,
        // org.springframework.context.event.internalEventListenerProcessor,
        // org.springframework.context.event.internalEventListenerFactory,
        // springConfig, autowireBean]

    }
}
